Convert the regular expression “” to an NFA using the algorithm from lecture. You may skip adding -transitions for concatenation if they are obviously unnecessary, but otherwise, you should precisely follow the construction from lecture.
Convert the regular expression “” to an NFA using the algorithm from lecture.
Let . Prove that is not regular.
Let . Prove that is not regular.
For proving countability, you must use one of the following strategies:
Enumeration
Dovetailing
Subset of a countable set
Using a surjection (onto function)
Using an injection (one-to-one function)
For proving uncountability, you must show there exists no enumeration
of the elements of
(there exists no surjection
).
This can be done using diagonalization.
Prove that is countable.
Prove that is uncountable.
Show that is countable.
Hint: How did we show that the rationals were countable?
Show that the countable union of countable sets is countable. That is, given a collection of sets such that is countable for all , show that the following is countable:
Hint: Find a way of labeling the elements and see if you can apply the previous part to construct an onto function from to .
Convert the following NFA to a DFA for the same language:
Convert the following NFA to a DFA for the same language: